package com.junjun.ssm.dao;



import com.junjun.ssm.entity.NewsEs;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface INewsDao extends PagingAndSortingRepository<NewsEs,String> {

   public List<NewsEs> findAllByTitle(String title);
    public List<NewsEs> findAllByInfo(String info);


    NewsEs findAllById(String id);

    List<NewsEs> findAll();

    void removeById(String id);



}
